package dao;

import java.rmi.Remote;
import java.rmi.RemoteException;


public interface DAO extends Remote{
	
	public void salvar (Object obj) throws RemoteException ;
	
	public void editar (Object obj) throws RemoteException;
	
	@SuppressWarnings("rawtypes")
	public void excluir(Object obj,Long id) throws RemoteException ;
	
	@SuppressWarnings("rawtypes")
	public Object buscar(Object obj,Long id) throws RemoteException;
	
	@SuppressWarnings("rawtypes")
	public Object buscaPorCoringa(Object obj,String coringa) throws RemoteException;

	Object buscaPorCoringa(Class clazz, String coringa) throws RemoteException;
	
//	public Object buscaregra (String regra, String parametro, Class c);

}
